// -*- coding: utf-8 -*- 
/**
 * Project: AlgorithmsLearn
 *
 * @author: yanking
 * Create time: 2022-04-14 14:37
 * IDE: IntelliJ IDEA
 * Introduction:
 */
package com.LeetCodeT.DateTrain;

import java.util.Arrays;

/**
 * 最富有客户的资产
 */
public class MaximumWealth {
    public int maximumWealth(int[][] accounts) {
        int ans = 0;
        for (int[] account : accounts) {
            ans = Math.max(ans, Arrays.stream(account).sum());
        }
        return ans;
    }
}
